﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RMS.Utils.MVP;
using RMS.Web.Shell.Presenter;
using RMS.Web.Shell.View;
using RMS.DataAccess.Entities;
using System.Web.Security;
using RMS.Utils.Navigator;

namespace RMS.MasterPages
{
    public partial class DefaultMasterPage : MasterPage<DeafaultMasterPagePresenter>, IDefaultMasterPageView
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          
        }

        protected void btnSignout_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Navigator.NavigateTo(Pages.Account_LoginView);
        }

        protected void btnMyProfile_Click(object sender, EventArgs e)
        {
            Navigator.NavigateTo(Pages.Account_ProfileView);
        }
        protected string GetDisplayName()
        {
            return this.Presenter.GetDisplayName();
        }
    }
}